#include"Shm.hpp"
#include"namedPipe.hpp"
int main()
{
    
    Shm shm(path, proj_id,creater);
    char *shmaddr = shm.getaddr();
    NamedPipe pipe(Path, creater);
    int cnt = 10;
    shm.Debug();
    while (cnt--)
    {
        string s;
        int k = pipe.Read(&s);
        if(k>0)
        cout << "shm:" << shmaddr << endl;
        else
            break;
        sleep(1);
    }
    return 0;
}